package com.haoshuang.zhouzhoubang.ui.adapter

import android.util.Log
import com.chad.library.adapter4.BaseQuickAdapter
import com.haoshuang.zhouzhoubang.R
import com.haoshuang.zhouzhoubang.databinding.ItemIamge3Binding
import com.mufeng.libs.base.BaseBindingHolder
import com.mufeng.libs.base.BaseBindingQuickAdapter
import com.mufeng.libs.utils.view.load

/**
 * 订单模块中的订单列表适配器
 * */
class ImageAdapter3(data: MutableList<ArrayList<String>>) :
    BaseBindingQuickAdapter<ArrayList<String>, ItemIamge3Binding>(data){

    override fun onBindViewHolder(
        holder: BaseBindingHolder,
        position: Int,
        item: ArrayList<String>?
    ) {
        if (item == null) return
        val binding = ItemIamge3Binding.bind(holder.itemView)

        binding.apply {
            Log.e("ImageAdapter3",item[0])
            ivImage.load(item[0], R.mipmap.default_image)
        }
    }

}